import React from 'react';
import './index.css'
import {withRouter } from 'react-router-dom'
import { connect } from 'react-redux'
import { routuOne,classOne } from '../../redux/classFicationg/classFication'
@withRouter
@connect(
    state => state,
    { classOne }
)
export default class ClassList extends React.Component{
    constructor(){
        super();
        this.state = {
            page:1,
            limit:10, 
        }
    }
   componentWillReceiveProps(nextProps){
       if(nextProps.classList.isState !== undefined){
        this.props.history.push('/menuList/classification/'+this.props.match.params.id)
       }else{
        this.props.history.push('/menuList/classification1/'+this.props.match.params.id)
       }
   }
   componentDidMount(){
        this.props.classOne(this.state.page,this.state.limit,'',this.props.match.params.id)
   }
    render() {
        
        return (
                 <div >
                 </div>
        )
    }
}